define([
  'jquery',
  '../../common/ajax/ajax',
  'artTemplate' ,
  '../../../common/js/lib/text!../../../tpl/system-info.tpl' ,
  '../../../common/js/lib/text!../../../tpl/header.tpl',
  '../../../common/js/lib/text!../../../tpl/footer.tpl' ,
  '../m/systemInfoM'
] , function($ , ajax , artTemplate , systemInfoTpl , headerTpl , footerTpl , system){
  function example(){
    ajax({
        url:interfaces.systemInfo.url,
        dataType:interfaces.systemInfo.dataType,
        type:interfaces.systemInfo.type,
        cache:{
            use:false,
            name:'',
            time:10
        },
        isOk:function(data){
          if(useNetData){
            data = data;
          }else{
            data = data.systemInfo;
          };
          var header = artTemplate.compile(headerTpl)({
                leftLink:'/h5-wizard/index.html#advanced-setting',
                title:'系统信息',
                rightBtn:'刷新',
              }),
              footer = artTemplate.compile(footerTpl)({type:4}),
              info = artTemplate.compile(systemInfoTpl)(data.data);
          $('.webApp-content').html(header+info+footer);
          $('.header .header-right').click(function(){
            example();
          })
        }
    });
  };
  return example;
});
